﻿<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib uri="/component/tree" prefix="component" %>

<%
	String context=request.getContextPath();
	String treeDir = context + ConfigUtil.getTreeDir();
%>


<%@page import="component.tree.util.ConfigUtil"%>

<head>

<% 
	out.println(ConfigUtil.getImportTreeJs());
	out.println(ConfigUtil.getImportTreeCss());
%>

</head>

<component:tree id="orgTreeObj" componentId="SMG_TORGANIZATION" title="单位"
					loadAllAble="true" searchAble="false" firstShowLevel="2" />
					
<script>

var url = "<%=context%>/component.do?component=tree&action=toChildList&componentId=SMG_TORGANIZATION&parentId="
parent.frames["rightOrgList"].location.href = url + "0";

function orgTreeObj_onClick(divId){
	var parentId = divId.split("_")[1];
	url += parentId;

	var rng=new Date().getTime();
	url += "&rng=" + rng;
	
	parent.frames["rightOrgList"].location.href = url;
}

</script>